<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %> 
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<script type="text/javascript">
	function submit_new_project(){
	$.post("projectAction!addNewProject",$("#newProjectForm").serialize(),function(data){
		$(".content").html(data);
	});
	};
</script>
	<div class="top_info">
    	<img src="include/img/subjects.png" />
        <div>
        	<span>发布课题</span>
        </div>
    </div>
    <hr class="line" />
     <s:form id="newProjectForm" action="projectAction!addNewProject" method="post">
     <div class="details">
    	<h>详细信息</h>
    	<ul>
        	<li><span>*课&nbsp;题&nbsp;名：</span><input type="text" name="project.name" /></li>
            <li><span>*课题级别：</span><input type="text" name="project.levels" /></li>
            <li><span>*研究领域：</span><input type="text" name="project.field" /></li>
            <li><span>*开发周期：</span><input type="text" name="project.period" />个月</li>
            <li><span>*工作地点：</span><input type="text" name="project.workplace" /></li>
            <li><span>-经济补助：</span><input type="text" name="project.payment" />元</li>
            <li>
            	<span>*研究内容：</span><br />
            	<textarea name="project.introduce"></textarea>
            </li>
            
        </ul>
        <br /><br />
        <h>要求</h>
        <ul>
        	<li><span>*每日时长：</span><select name="project.timeDemand">
            <option value="1">1</option><option value="2">2</option>
            <option value="3">3</option><option value="4">4</option>
            <option value="5">5</option><option value="6">6</option>
            <option value="7">7</option><option value="8">8</option>
            <option value="9">9</option><option value="10">10</option>
            <option value="11">11</option><option value="12">12</option>
            </select>小时
            </li>
            <li><span>*技术要求：</span><br />
            	<textarea name="project.skillDemand"></textarea>
            </li>
            <li><span>*性格要求：</span><br />
            	<textarea name="project.characterDemand"></textarea>
            </li>
        </ul>
      <input type="button" value="发布" onclick="submit_new_project()" />

    </div>
   </s:form>
    





